package com.xky.feigin.service;

import com.xky.feigin.domain.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author keying.xia
 * @date 2017/12/14
 */
@FeignClient(name = "microservice-provider-user",fallbackFactory = ServiceFallBackFactory.class)
public interface Service {

    @RequestMapping(value = "/simple/{id}",method = RequestMethod.GET)
    public User findById(@PathVariable("id") Long id);


}
